using System;
using System.Collections.Generic;
using System.Text;

namespace Spacedash.Logic.RaceStates
{
    /// <summary>
    /// A race in this state is fully finished, waiting for the game to return to the results page or the main menu
    /// </summary>
    public class FinishedRaceState : RaceState 
    {
        /// <summary>
        /// \internal State identifier
        /// </summary>
        public override RaceStateList State
        {
            get { return RaceStateList.Finished; }
        }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="race">Race instance</param>
        public FinishedRaceState(Race race)
            : base(race)
        {
        }

        /// <summary>
        /// \internal Upates the state
        /// </summary>
        public override void Update()
        {
            race.Scenario.UpdateCells();
        }        
    }
}
